-- GENERATED SPELL FOR [Hailstone Lieutenant] --


function spell0_26178(pUnit, Event) --@Freeze,n/a--
pUnit:FullCastSpellOnTarget(5276,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26178', 19000, 1)
end

function spell1_26178(pUnit, Event) --@Knockdown,n/a--
pUnit:FullCastSpellOnTarget(5164,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26178', 2000, 1)
end

function Sorts_26178(pUnit, Event)
local choix_sorts_26178 = math.random(0, 1)
if choix_sorts_26178 == 0 then
pUnit:RegisterEvent('spell0_26178', 1, 1)
end
if choix_sorts_26178 == 1 then
pUnit:RegisterEvent('spell1_26178', 1, 1)
end
end

function mob26178_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26178', math.random(1500, 3000), 1)
end

function mob26178_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26178_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26178_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26178, 1, 'mob26178_Action')
RegisterUnitEvent(26178, 2, 'mob26178_Leave')
RegisterUnitEvent(26178, 3, 'mob26178_Kill')
RegisterUnitEvent(26178, 4, 'mob26178_Die')
